import request from '@/config/axios'
// 用户
export const list = (data: any) => {//
    return request.get({ url: '/api/enterprise/user/list', params: data })
}
export const rolelist = () => {//
    return request.get({ url: '/api/enterprise/role/list'})
}
// 
// 
export const add_new = (data: any) => {//
    return request.post({ url: '/api/enterprise/user', data: data })
}
export const edit_user = (data: any) => {//
    return request.put({ url: '/api/enterprise/user', data: data })
}
export const reset_pwd = (data: any) => {//
    return request.put({ url: '/api/enterprise/user/resetPwd', data: data })
}
export const del = (data: any) => {//
    return request.delete({ url: '/api/enterprise/user/'+data })
}

